package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 
 * @TableName role
 */
@TableName(value ="role")
@Data
public class Role  {
    /**
     * 
     */
    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer RoleId;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    @NotNull(message = "角色名称不能为空")
    private String roleName;

    /**
     * 状态0启用1禁用
     */
    @TableField(value = "status")
    private Integer status;
}